// 用于注册components文件夹内部全部全局组件
import type { App, Component } from 'vue'
import SvgIcon from './SvgIcon/index.vue'
import Pagination from './Pagination/index.vue'

const allGlobalComponent: { [name: string]: Component } = { SvgIcon, Pagination }

export default {
  install(app: App) {
    Object.keys(allGlobalComponent).forEach(key => {
      app.component(key, allGlobalComponent[key]);
    })
  }
}